/**
 * 路由配置解析
 */

import { oneConfigs, childKeys } from './init'
import { catalogToTree } from './utils'
import { getLinkInfo } from './methods'

/** 全局路由规则 */
export const adminRules = {
    baseUrl: '/',
    name: "admin",
    children: oneConfigs,
}

/** 根据目录层级关系生成的关系树 */
export const fileTree = catalogToTree(childKeys)

/** 根据路由关系生成的Link导航树结构 */
export const Asidelinks = getLinkInfo(adminRules.children, adminRules.baseUrl, [], true);
